import java.util.ArrayList;


public class Prober implements Runnable{
	ServerImpl server;
	int transactionId;
	ArrayList<Integer> edgeList;
	
	
	public Prober(ServerImpl server, int transactionId,
			ArrayList<Integer> edgeList) {
		super();
		this.server = server;
		this.transactionId = transactionId;
		this.edgeList = edgeList;
	}


	@Override
	public void run() {
		server.forwardProbe(transactionId, edgeList);
		
	}
	
	public static void SendProber(ServerImpl server, int transactionId, ArrayList<Integer> edgeList){
		Prober p = new Prober(server, transactionId, edgeList);
		Thread t = new Thread(p);
		t.run();
	}
	
}
